{% extends "layout.html" %} {% block body %} {% if error %}
<p class="error"><strong>Error:</strong>{{error}}</p>
{% endif %}

<div class="col-md-8 col-md-offset-2">
	<div class="panel panel-default">
		<div class="panel-heading">注册</div>
		<div class="panel-body">
			<form class="form-horizontal" role="form" method="POST" action="{{url_for('register')}}">
				<input type="hidden" name="_token" value="Y1tC4xbmPAWQLFshhIIHVPdHo1xOSM7TWkXSxGHE">

				<div class="form-group">
					<label class="col-md-4 control-label">昵称</label>

					<div class="col-md-6">
						<input type="text" class="form-control" name="username" value="">

					</div>
				</div>

				<div class="form-group">
					<label class="col-md-4 control-label">邮箱地址</label>

					<div class="col-md-6">
						<input type="email" class="form-control" name="email" value="">

					</div>
				</div>

				<div class="form-group">
					<label class="col-md-4 control-label">密码</label>

					<div class="col-md-6">
						<input type="password" class="form-control" name="password">

					</div>
				</div>

				<div class="form-group">
					<label class="col-md-4 control-label">重复密码</label>

					<div class="col-md-6">
						<input type="password" class="form-control" name="password_confirmation">

					</div>
				</div>

				<div class="form-group">
					<div class="col-md-6 col-md-offset-4">
						<button type="submit" class="btn btn-primary">
                                    <i class="fa fa-btn fa-user"></i>注册
                                   
                                </button>
						<a class="btn btn-link" href="https://www.baidu.com">已有账号，去登录</a>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>

{% endblock body %}